package com.yswy.domain.vo.gld.addOrUpate;

import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class TgChannelAddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;

    @ApiModelProperty("渠道包Id")
    @NotNull(message = "渠道包Id不能为空", groups = {CREATE.class})
    private Long packageManageId;

    @ApiModelProperty("扣量配置Id")
    @NotNull(message = "扣量配置Id不能为空", groups = {CREATE.class})
    private Long tgDeductionId;

    @ApiModelProperty("事件管理Id")
    @NotNull(message = "事件管理Id不能为空", groups = {CREATE.class})
    private Long tgEventId;


    @ApiModelProperty("渠道标签")
    @NotEmpty(message = "渠道不能为空", groups = {CREATE.class})
    private String channel;

    @ApiModelProperty("备注")
    private String  remarks;

    @ApiModelProperty("考核价格")
    private Long examinePrice = 0l;

    @ApiModelProperty("是否开启扣量 0 不开启   1 开启")
    @NotNull(message = "是否开启扣量不能为空", groups = {CREATE.class})
    private Long  isOpen ;
}
